package com.foreverwin.jzymes.production.grind.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.foreverwin.jzymes.production.grind.mapper.GrindLogMapper;
import com.foreverwin.jzymes.production.grind.domain.GrindLog;
import com.foreverwin.jzymes.production.grind.service.IGrindLogService;

/**
 * 研磨产出记录 服务层实现
 * 
 * @author ervin
 * @date 2019-07-24
 */
@Service
public class GrindLogServiceImpl implements IGrindLogService
{
	@Autowired
	private GrindLogMapper grindLogMapper;

	/**
     * 查询研磨产出记录信息
     * 
     * @param handle 研磨产出记录ID
     * @return 研磨产出记录信息
     */
    @Override
	public GrindLog selectGrindLogById(String handle)
	{
	    return grindLogMapper.selectGrindLogById(handle);
	}
	
	/**
     * 查询研磨产出记录列表
     * 
     * @param grindLog 研磨产出记录信息
     * @return 研磨产出记录集合
     */
	@Override
	public List<GrindLog> selectGrindLogList(GrindLog grindLog)
	{
	    return grindLogMapper.selectGrindLogList(grindLog);
	}
	
    /**
     * 新增研磨产出记录
     * 
     * @param grindLog 研磨产出记录信息
     * @return 结果
     */
	@Override
	public int insertGrindLog(GrindLog grindLog)
	{
	    return grindLogMapper.insertGrindLog(grindLog);
	}
	
	/**
     * 修改研磨产出记录
     * 
     * @param grindLog 研磨产出记录信息
     * @return 结果
     */
	@Override
	public int updateGrindLog(GrindLog grindLog)
	{
	    return grindLogMapper.updateGrindLog(grindLog);
	}

	/**
     * 删除研磨产出记录对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteGrindLogByIds(String ids)
	{
		return grindLogMapper.deleteGrindLogByIds(ids.split(","));
	}
	
}
